//  this library.
/// 重置密码返回模型
class ChangeModel {
  String? type;
  String? deviceType;
  String? deviceId;
  String? deviceName;
  String? devicePushId;
  String? userAccount;
  String? credential;
  String? code;
  String? userType;
  List<String>? userTypes;
  String? userId;
  String? bindPhone;
  int? groupId;
  String? token;
  String? accessToken;

  ChangeModel({
    this.type,
    this.deviceType,
    this.deviceId,
    this.deviceName,
    this.devicePushId,
    this.userAccount,
    this.credential,
    this.code,
    this.userType,
    this.userTypes,
    this.userId,
    this.bindPhone,
    this.groupId,
    this.token,
    this.accessToken,
  });

  ChangeModel.fromJson(Map<String, dynamic> json) {
    type = json['type'];
    deviceType = json['deviceType'];
    deviceId = json['deviceId'];
    deviceName = json['deviceName'];
    devicePushId = json['devicePushId'];
    userAccount = json['userAccount'];
    credential = json['credential'];
    code = json['code'];
    userType = json['userType'];
    userTypes = json['userTypes'].cast<String>();
    userId = json['userId'];
    bindPhone = json['bindPhone'];
    groupId = json['groupId'];
    token = json['token'];
    accessToken = json['accessToken'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['type'] = type;
    data['deviceType'] = deviceType;
    data['deviceId'] = deviceId;
    data['deviceName'] = deviceName;
    data['devicePushId'] = devicePushId;
    data['userAccount'] = userAccount;
    data['credential'] = credential;
    data['code'] = code;
    data['userType'] = userType;
    data['userTypes'] = userTypes;
    data['userId'] = userId;
    data['bindPhone'] = bindPhone;
    data['groupId'] = groupId;
    data['token'] = token;
    data['accessToken'] = accessToken;
    return data;
  }
}
